<div style="overflow-y:auto;overflow-x:auto; width: 370px;" id="skuFormDiv">
        <form id="skuForm" action="skus.php?a=<?php $this->ifput($sku, 'doEdit&id=' . $sku['id'], 'doAdd')?>" method="post" enctype="multipart/form-data">
        <div class="box">
                <div style="display: block; width:90%;" id="adviceMsg" class="validation-advice"></div>
                <dl class="facerow">
                    <dt><?php $this->put('p/n');?>:</dt>
                    <dd>
                        <?php if ($sku['id']) : ?>
                        <?php $this->put($sku['sku'])?>
                        <input type="hidden" value="<?php $this->put($sku['sku'])?>" name="sku" id="sku" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';"/>
                        <?php else : ?>
                        <input type="text" value="<?php $this->put($sku['sku'])?>" name="sku" id="sku" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';"/>
                        <?php endif;?>
                    </dd>
                </dl>
                <!--<dl class="facerow">
                    <dt><?php $this->put('p/n');?>:</dt>
                    <dd>
                        <?php if ($sku['id'] && !empty($sku['pn'])) : ?>
                        <?php $this->put($sku['pn'])?>
                        <?php else : ?>
                        <input type="text" value="<?php $this->put($sku['pn'])?>" name="pn" id="pn" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';" />
                        <?php endif;?>
                    </dd>
                </dl> -->
                <dl class="facerow">
                    <dt><?php $this->put('Model');?>:</dt>
                    <dd>
                        <input type="text" value="<?php $this->put($sku['model'])?>" name="model" id="model" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';" />
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('星级');?>:</dt>
                    <dd>
                        <select name="level" id="level" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';">
                            <?php $this->htmlOptions($levelArray, $sku['level'])?>
                        </select>
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('产品名称');?>:</dt>
                    <dd>
                        <input type="text" value="<?php $this->put($sku['title'])?>" name="title" id="title" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';"/>
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('所属项目');?>:</dt>
                    <dd>
                        <select name="projectId" id="projectId" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';">
                            <?php $this->htmlOptions($projects, $projectId)?>
                        </select>
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('厂商建议零售价(SRP)');?>:</dt>
                    <dd>
                        <input type="text" name="srp" id="srp" value="<?php $this->put($sku['srp'])?>" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';" />
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('协定价(MOP)');?>:</dt>
                    <dd>
                        <input type="text" name="mop" id="mop" value="<?php $this->put($sku['mop'])?>" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';" />
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('总代出货价(DSP)')?>:</dt>
                    <dd>
                        <input type="text" name="dsp" id="dsp" value="<?php $this->put($sku['dsp'])?>" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';" />
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('备注');?>:</dt>
                    <dd>
                        <input type="text" name="remark" id="remark" value="<?php $this->put($sku['remark'])?>" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';" />
                    </dd>
                </dl>
            <div class="buttonrow">
                <input type="hidden" name="formHash" value="<?php $this->put($formHash);?>" />
                <input type="button" class="submit" value="保存" onclick="checkSkuForm(true);"/>
                <input type="button" class="button" value="关闭" onclick="checkSkuForm(false);"/>
            </div>
        </div>
     </form>
</div>